
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0"/>
    <link rel="shortcut icon" href="http://md.yuxiaocloud.com/Upload/agent/2000493/favicon_img.png"/>
        <link rel="bookmark" href="http://md.yuxiaocloud.com/Upload/agent/2000493/favicon_img.png"/>




    <title>
    添加新商品 - 宇晓科技</title>
    <!-- 线上环境 -->
        <link rel="stylesheet" href="http://md.yuxiaocloud.com/Public/css/dist/component-min.css">    <link rel="stylesheet" href="http://md.yuxiaocloud.com/Public/plugins/jbox/jbox-min.css?3">

    <link rel="stylesheet" href="http://md.yuxiaocloud.com/Public/plugins/uploadify/uploadify-min.css">
    <link rel="stylesheet" href="http://md.yuxiaocloud.com/Public/css/dist/home/Item/add_step2.css">
    <!--<link rel="stylesheet" href="/Public/css/home/Isv/Isv_item_info.css">-->
    <style>
    .first_floor {
        line-height: 28px;
    }

    .formitems .fi-name {
        width: 135px;
    }

    .form-controls {
        margin-left: 138px;
    }

    .input.moreMini {
        width: 60px;
    }

    .newWidth .fi-name {
        width: 90px;
    }

    .newWidth .form-controls {
        margin-left: 90px;
    }

    .storge_left {
        display: inline-block;
        height: 28px;
        padding: 0 12px;
        color: #fff;
        background: #42CA80;
        margin-right: 10px;
        border-radius: 3px;
    }

    .no_assign_num {
        display: inline-block;
        height: 28px;
        padding: 0 12px;
        border-radius: 3px;
        background: #42CA80;
        color: #fff;
    }

    .diy-actions {
        position: fixed;
        bottom: 0;
        padding: 10px;
        border: 1px solid #ccc;
        background-color: #F8F8F8;
        z-index: 2;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }

    .diy-actions-submit {
        text-align: center;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0;
    }
    </style>

</head>
<body class="cp-bodybox">

<!--information-->


<!--[if lt IE 9]>
<div class="alert alert-danger disable-del txtCenter" id="tipLowIEVer">
    <h4>系统检测到您使用的浏览器版本过低，为达到更好的体验效果请升级您的浏览器，我们为您推荐：</h4>
    <p>
        <a href="https://www.google.com.hk/chrome/" target="_blank">Chrome浏览器</a>
        <a href="http://www.firefox.com.cn/download/" target="_blank">Firefox浏览器</a>
        <a href="http://www.maxthon.cn/" target="_blank">遨游浏览器</a>
        <a href="http://se.360.cn/" target="_blank">360浏览器</a>
        <a href="http://www.liebao.cn/" target="_blank">猎豹浏览器</a>
    </p>
</div>
<![endif]-->
<div class="container">
    <div class="inner clearfix">
        <div class="content-left fl">
                    </div>

        <!-- end content-left -->

        <div class="content-right clearfix">

            <a href="javascript:;" class="btn-leftMenuFold" id="j-btn-leftMenuFold"></a>
            <div class="right-inner ">
            <h1 class="content-right-title">
    添加新商品</h1>
    <input type="hidden" id="j-isSid" value='0'>
    <!-- 是否选择了淘宝类目 -->
    <input type="hidden" id="j-goodsSid" value=''>
    <input type="hidden" id="j-goodsid" value=''>
    <input type="hidden" id="j-hasNorms" value=''>
    <!-- 淘宝类目下是否有属性 -->
    <input type="hidden" id="supplier" value="">
    <form id="add_step2">
        <input type="hidden" name="item_id" value="">
        <input type="hidden" name="action" value="create">
        <input type="hidden" name="is_show_sale" value="">
        <input type="hidden" name="hide_stock" value="">
        <input type="hidden" name="on_sale" value="0">

        <div class="panel-single panel-single-light mgt20">
            <h3 class="cst_h3 mgb20">商品信息（带<span class="colorRed">*</span>的是必填项）</h3>
            <div class="formitems">
                    <label class="fi-name"><span class="colorRed">*</span>适用门店：</label>
                    王小二的店                                        </div>            <div class="formitems">
                <label class="fi-name"><span class="colorRed">*</span>商品名称：</label>
                <div class="form-controls">
                    <input type="text" placeholder="请输入商品的名字" maxlength="64" class="input xxlarge J_goods_name" name="title" value="" maxlength="64">
                    <span class="fi-help-text">商品名最多64个字符</span>
                </div>
            </div>
            <!-- <div class="formitems">
        <label class="fi-name">
            <span class="colorRed"></span>商品分类：</label>
        <select name="class_id" class="select">
                <option value="0">选择分类</option>
            <option value="5222">分类2</option><option value="5221">分类1</option><option value="5223">分类3</option>        </select>
    </div> -->
                    <div class="formitems">
        <label class="fi-name"><span class="colorRed">*</span>标准原价：</label>
        <div class="form-controls">
            <input type="text" class="input mini" placeholder="0.00" name="original_price"  value="">
            <span>元</span>

            <span class="fi-help-text"></span>
        </div>
        </div>                        <div class="formitems">
                <label class="fi-name"><span class="colorRed">*</span>标准现价：</label>
                <div class="form-controls">
                    <input type="number" placeholder="0.00" class="input mini" name="price" value="">
                    <span>元</span>
                                        <span class="fi-help-text"></span>
                </div>
            </div>            <div class="formitems">
                <label class="fi-name"><span class="colorRed"></span>进价(成本)：</label>
                <div class="form-controls">
                    <input type="number" placeholder="0.00" class="input mini" name="in_price" value="">
                    <span>元</span>
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <!-- <div class="formitems">
        <label class="fi-name"><span class="colorRed">*</span>标准库存：</label>
        <div class="form-controls">
            <input type="text" placeholder="0" class="input mini" id="j-totalStock" name="num" value="">
            <span><input type="text" placeholder="件" class="input xmini" name="unit" value=""></span>
            <span class="fi-help-text"></span>
        </div>
    </div> -->
            <!-- <div class="formitems">
        <label class="fi-name"><span class="colorRed"></span>购买所需积分：</label>
        <div class="form-controls">
            <input type="text" placeholder="0" class="input mini"  name="buy_need_points" value="">
            <span class="fi-help-text"></span>
        </div>
    </div> -->
            <!-- <div class="formitems">
        <label class="fi-name">
            <span class="colorRed"></span>购买获得会员等级：</label>
        <select name="rank_id" class="select">
            <option value="0">选择会员等级</option>
                    </select>
    </div> -->
            <!--     <div class="formitems">
        <label class="fi-name"><span class="colorRed"></span>基础点赞数：</label>
        <div class="form-controls">
            <input type="text" placeholder="0" class="input mini"  name="praise_num" value="">
            <span class="fi-help-text"></span>
        </div>
    </div> -->

            <div class="formitems">
                <div class="formitems">
                    <label class="fi-name"><span class="colorRed">*</span>商品首图：</label>
                    <div class="form-controls">
                        <ul class="img-list clearfix" id="selectedImg">
                            <li class="img-list-add j-addgoods">
                                                                    +                            </li>
                        </ul>
                        <input type="hidden" name="file_path" class="j-verify" value="">
                        <span class="fi-help-text">建议上传尺寸300px * 300px</span>
                    </div>
                </div>
            </div>
                        <div class="formitems">
                <label class="fi-name"><span class="colorRed">*</span>详情轮播图：</label>
                <div class="form-controls j-imglistPanel">
                    <ul class="img-list clearfix selectImgList">
                                                <li class="img-list-add j-addimg">+</li>
                    </ul>
                    <span class="fi-help-text">至少上传一张商品详情图</span>
                    <span class="fi-help-text">建议上传尺寸750px * 420px</span>
                </div>
            </div>            <div class="formitems">
                <label class="fi-name"><span class="colorRed"></span>日库存：</label>
                <div class="form-controls">
                    <input type="text" class="input mini"  name="day_num" value="">
                    <span class="fi-help-text">注意：值为0时代表无限日库存</span>
                </div>
            </div>

            <div class="formitems">
                <label class="fi-name"><span class="colorRed"></span>基础销量：</label>
                <div class="form-controls">
                    <input type="text" placeholder="0" class="input mini"  name="basic_sales" value="">
                    <span class="fi-help-text"></span>
                </div>
            </div>

            <div class="formitems">
                <label class="fi-name">排序：</label>
                <div class="form-controls">
                    <input type="text" min="0" max="100" placeholder="越大越靠前" class="input mini"  name="serial" value="">
                    <span class="fi-help-text">序号大的排在前面</span>
                </div>
            </div>

            <div class="formitems">
                    <label class="fi-name"><span class="colorRed"></span>一级推客返佣比：</label>
                    <div class="form-controls">
                        <input type="text" placeholder="0" class="input mini"  name="superior_rebate" value="">%
                        <span class="fi-help-text">自动舍去小数</span>
                    </div>
                </div>

                <div class="formitems">
                    <label class="fi-name"><span class="colorRed"></span>二级推客返佣比：</label>
                    <div class="form-controls">
                        <input type="text" placeholder="0" class="input mini"  name="top_rebate" value="">%
                        <span class="fi-help-text">自动舍去小数</span>
                    </div>
                </div>
            <div class="formitems">
                <label class="fi-name">
                    <span class="colorRed"></span>商品分类：
                </label>
                <div class="form-controls">
                    <select name="class_id" class="select">
                        <option value="0">选择分类</option>
                        <option value="5222">分类2</option><option value="5221">分类1</option><option value="5223">分类3</option>                    </select>
                </div>
            </div>
            <div class="J_Sku formitems">
                <label class="fi-name">商品规格：</label>
                            <div class="form-controls">
                    <input type="text" class="J_SkuAlias input" placeholder="名称" maxlength="15">
                    <input type="text" class="J_SkuPrice input mini" placeholder="单价">
                    <input type="text" class="J_WrapperPrice input mini" placeholder="打包费">
                    <!---->

                       <!---->
                    <span class="J_AddSku add_list"></span>
                    <span class="J_RemoveSku del_list"></span>
                    <input type="hidden" value="0" class="J_SkuId">
                </div>            </div>
            <!--  -->



            <div class="formitems">
                <label class="items_name">
                    <span class="colorRed">*</span> 商品描述：
                </label>
                <div class="kb_controls div_descriptions">
                    <div class="goods_desc">
                        <div class="control">
                            <input type="text" name="descriptions_title" value="" class="w200 input" placeholder="请输入描述标题" maxlength="15">
                            <input type="text" name="descriptions_detail" value="" class="w200 input" placeholder="请输入标题下的内容">
                            <span class="add_list add_desc"></span>
                            <span class="del_list del_desc"></span>
                        </div>
                    </div>

                    <div class="control mgt10">
                        <div class="btn btn-primary j_addGoods">增加标题</div>
                        <p class="remarks">描述标题，建议不得超过15个中文字符（请注意：添加描述时不要添加1.2.3.之类的小标题）</p>
                    </div>

                </div>
            </div>
                        <div class="formitems">
                <label class="items_name">
                    <span class="colorRed"></span> 商品视频：
                </label>
                <div class="">
                    <div class="">
                        <div class="control">
                            <input type="text" name="vedio_url" value="" class=" input" placeholder="请输入视频地址" style="width: 400px;"><br>
                            <span class="help_info_box">请填写有效的地址。可以 <a href="/VedioUpload.html" target="_blank" class="btn">点这里</a> </span>上传视频文件获得链接地址。
                        </div>
                    </div>

                </div>
            </div>
            <div class="formitems">
                                <label class="fi-name">描述详情：</label>
                <div class="form-controls">
                    <textarea id="container" name="desc"></textarea>
                </div>            </div>


        </div>
        <!-- <div class="panel-single panel-single-light mgt20 j-showinhyd">
    <h3 class="cst_h3 mgb20">其它</h3>
    <div style="display: none;" class="sysPanel">
         <div class="sysPanel-con">
             <div class="sysPanel-title"><span class="colorRed">*</span>库存显示：</div>
             <div class="sysPanel-tip">开启后，显示库存</div>
         </div>
         <div class="vir-chkb j-vir-chkb hide_stock_div">
            <div class="vir-chkb-actions clearfix">
                <a href="javascript:;" class="vir-chkb-enable">已开启</a>
                <a href="javascript:;" class="vir-chkb-disable">已关闭</a>
            </div>
            <input type="radio" name="" class="ip-checkbox j-vir-checkbox"  >
        </div>
     </div>

    <div class="sysPanel">
        <div class="sysPanel-con">
            <div class="sysPanel-title"><span class="colorRed">*</span>销量显示：</div>
            <div class="sysPanel-tip">开启后，在商品列表显示销量</div>
        </div>
        <div class="vir-chkb j-vir-chkb is_show_sale_div">
            <div class="vir-chkb-actions clearfix">
                <a href="javascript:;" class="vir-chkb-enable">已开启</a>
                <a href="javascript:;" class="vir-chkb-disable">已关闭</a>
            </div>
            <input type="radio" name="" class="ip-checkbox j-vir-checkbox"  >
        </div>
    </div> -->
        <!-- 点击添加描述标题后需要添加的html -->
        <div style="display: none" class="add_descriptions">
            <div class="goods_desc">
                <div class="control" style="margin-top: 8px">
                    <input type="text" name="descriptions_title" value="" class="w200 input" placeholder="请输入描述标题">
                    <input type="text" class="w200 input" name="descriptions_detail" placeholder="请输入标题下的内容">
                    <span class="add_list add_desc"></span>
                    <span class="del_list del_desc"></span>
                </div>
            </div>
        </div>
         <!-- 点击添加描述内容需要添加的html -->
        <div style="display: none" class="add_descriptions_d">
            <div class="control">
                <input style="margin-left: 190px;margin-top: 8px" type="text" class="w200 input" name="descriptions_detail" placeholder="请输入标题下的内容">
                <span class="del_list del_desc_d"></span>
            </div>
        </div>


        <div style="display: none" class="add_attribute">
            <div class="goods_attr">
                <div class="control" style="margin-top: 8px">
                    <input type="text" name="attribute_name" value="" class="w200 input" placeholder="属性名称">
                    <input type="text" class="w200 input" name="attribute_class" placeholder="属性细分（至少写两个）">
                    <span class="add_list add_attr"></span>
                    <span class="del_list del_attr"></span>
                </div>
            </div>
        </div>
        <!-- 点击添加描述内容需要添加的html -->
        <div style="display: none" class="add_attribute_d">
            <div class="control">
                <input style="margin-left: 190px;margin-top: 8px" type="text" class="w200 input" name="attribute_class" placeholder="属性细分">
                <span class="del_list del_desc_d"></span>
            </div>
        </div>
        <!-- </div> -->
        <!-- end 物流及其它 -->
    </form>

    <div class="diy-actions" style="width: 1200px">
        <div class="diy-actions-submit">
            <a href="javascript:;" class="btn btn-primary" id="j-submit">保存</a>
        </div>
    </div>
    <!--<div class="panel-single panel-single-light mgt20 txtCenter">-->
    <!--</div>-->
    <div id="setfxs-box-overlay"></div>

        </div>
            </div>
    <!-- end content-right -->
</div>
</div>
<!-- end container -->


<div class="footer">&copy; 2018    宇晓科技            , Inc. All rights reserved.</div>
<!-- end footer -->
<div class="fixedBar cover">
    <ul>
            </ul>
    <a href="javascript:;" class="fixedBar-btn" id="j-fixedBar-btn"></a>
</div>

<a href="#" id="j-gotop" class="gotop" title="回到顶部"></a>
<!-- end gotop -->

<audio id="music-bg" preload="preload">
    <source src="/Public/music/new-chat.ogg" type="audio/ogg">
    <source src="/Public/music/new-chat.mp3" type="audio/mpeg">
</audio>
<!-- end 订单提示音 -->

<script type="text/j-template" id="tpl_tooltips">
	<div class="tooltips" style="display:none;">
	    <span class="tooltips-arrow tooltips-arrow-<%= placement %>"><em>◆</em><i>◆</i></span>
	    <%= content %>
	</div>
</script>
<!-- end tooltips -->

<script type="text/j-template" id="tpl_hint">
	<div class="hint hint-<%= type %>"><%= content %></div>
</script>
<!-- end hint -->

<script type="text/j-template" id="tpl_jbox_simple">
	<div class="mgt30"><%= content %></div>
</script>
<!-- end tpl_jbox_simple -->

<script type="text/j-template" id="tpl_qrcode">
	<div id="qrcode">
		<img src="<%= src %>">
		<a href="javascript:;" class="qrcode-btn j-closeQrcode"><i class="gicon-remove white"></i></a>
	</div>
</script>
<!-- end qrcode -->

<script type="text/j-template" id="tpl_verify_set">

	<div class="tabs clearfix mgt15" id="verify-set-tabs">
	    <a href="javascript:;" class="tabs_a fl active">店铺信息设置</a>
	    <a href="javascript:;" class="tabs_a fl">微信设置</a>
	    <a href="javascript:;" class="tabs_a fl">佣金设置</a>
	</div>
	<form action="" method="post" id='form-set'>

		<!-- 店铺信息 -->
		<div class="panel-single panel-single-light mgt20 verify-set-div ">
			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>店铺名称：</label>
				<div class="form-controls">
					<input type="text" class="input" name="title" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>
			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>联系人：</label>
				<div class="form-controls">
					<input type="text" class="input" name="contact_name" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>
			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>联系电话：</label>
				<div class="form-controls">
					<input type="text" class="input" name="contact_phone" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>
			<div class="formitems">
				<label class="fi-name">店铺简介：</label>
				<div class="form-controls">
					<textarea class="textarea" name="description"></textarea>
					<span class="fi-help-text"></span>
				</div>
			</div>
		</div>
		<!-- 微信 -->
		<div class="panel-single panel-single-light mgt20 verify-set-div hide">
			<div class="alert alert-info">开通微信营销需要绑定微信公众帐号，不知道怎么绑定请参考 <a href="/PubMarketing/setting_guide" target="_blank" class="a_hover">开通指引</a></div>

			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>名称：</label>
				<div class="form-controls">
					<input type="text" class="input" name="pub_name" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>
			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>原始ID：</label>
				<div class="form-controls">
					<input type="text" class="input" name="source_id" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>

			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>微信号：</label>
				<div class="form-controls">
					<input type="text" class="input" name="pub_account" value="">
					<span class="fi-help-text"></span>
				</div>
			</div>
			<div class="formitems" style="margin-top:30px;">
				<label class="fi-name">回调URL：</label>
				<div class="form-controls pdt5">
					<div class="fl" style="width:355px;"></div>
					<a href="javascript:;" class="btn btn-small j-copy" data-copy="">复制</a>
				</div>
			</div>
			<div class="formitems">
				<label class="fi-name">Token：</label>
				<div class="form-controls pdt5">
					<div class="fl" style="width:355px;"></div>
					<a href="javascript:;" class="btn btn-small j-copy" data-copy="">复制</a>
				</div>
			</div>
			<div class="formitems mgt5">
				<label class="fi-name"><span class="colorRed">*</span>AppId：</label>
				<div class="form-controls">
					<input type="text" class="input xlarge" value="" name="app_id" >
					<span class="fi-help-text"><a href="https://mp.weixin.qq.com/" target="_blank">点击获取</a>(开发者中心)</span>
				</div>
			</div>

			<div class="formitems">
				<label class="fi-name"><span class="colorRed">*</span>Secret：</label>
				<div class="form-controls">
					<input type="text" class="input xlarge" name="app_secret" value="">
					<span class="fi-help-text"><a href="https://mp.weixin.qq.com/" target="_blank">点击获取</a>(开发者中心)</span>
				</div>
			</div>

		</div>
		<!-- 提成 -->
		<div class="panel-single panel-single-light mgt20 verify-set-div hide">
			<div class="alert alert-info">三级佣金比例累计不可以超过50%</div>
			<div class="formitems">
				<label class="fi-name" style="width: 121px;"><span class="colorRed">*</span>一级上级佣金比例：</label>
				<div class="form-controls">
					<input type="text" class="input mini j-pid" name="directly_online_ratio" value="0">%
					<span class="fi-help-text">分销商推荐买家购买后能拿到的佣金比例</span>
				</div>
			</div>

			<div class="formitems">
				<label class="fi-name" style="width: 121px;"><span class="colorRed">*</span>二级上级佣金比例：</label>
				<div class="form-controls">
					<input type="text" class="input mini j-pid" name="superior_online_ratio" value="0">%
					<span class="fi-help-text">分销商的上级分销商能拿到的佣金比例</span>
				</div>
			</div>

            <div class="formitems">
                <label class="fi-name" style="width: 121px;"><span class="colorRed">*</span>三级上级佣金比例：</label>
                <div class="form-controls">
                    <input type="text" class="input mini j-pid" name="three_online_ratio" value="0">%
                    <span class="fi-help-text">分销商上级的上级能拿到的佣金比例</span>
                </div>
            </div>

		</div>

		<div class="panel-single panel-single-light mgt20 txtCenter">
		    <a href="javascript:;" class="btn" id='verify-set-prev'>上一步</a>
		    <a href="javascript:;" class="btn btn-primary" id='verify-set-next'>下一步</a>
		    <a href="javascript:;" class="btn btn-primary hide" id='verify-set-save'>保存</a>
		</div>
	</form>
</script>

<script type="text/j-template" id="tpl_jbox_domain_tip">
	<p style="line-height:1.8em;font-size:14px;">应微信转发规则要求，2016年3月30日后未启用顶级域名的商户后台部分营销功能使用将受限制，请抓紧办理。 <a href="/Public/change_domain.html" style="color:blue" target="_blank">查看绑定域名流程</a></p>
</script>
<!-- end tpl_jbox_simple -->

<script type="text/j-template" id="tpl_order_remind">
    <div class="order-tip-box clearfix">
        <div class="order-con">
            <a href="javascript:;" class="order-close"></a>
            <div class="order-img fl"><img src="/Public/images/clipboard.png"/></div>
            <div class="order-info">
            	<h2>您有一笔新订单</h2>
                <p class="order-no">订单编号：<%= order_no %></p>
                <p class="order-price">下单时间：<%= create_time %></p>
                <p class="order-price">实付金额：&yen;<%= payment %></p>
				<% if(newOrderNotice_url){%>
				<p class="order-price">使用积分：<%= points %></p>
				<% }%>
                <p class="order-price">订单状态：已付款</p>
            </div>
			<% if(newOrderNotice_url){%>
				<a href="<%= newOrderNotice_url %>" class="check-lists">查看更多</a>
			<% }else{ %>
				<a href="/Order/lists" class="check-lists">查看更多</a>
			<% }%>

        </div>
    </div>
</script>
<!-- end 订单提醒弹框 -->
<script type="text/j-template" id="tpl_fenmob">
	<!-- <div class="mgt30 fenmob_title">确定要授权并进入粉盟直播吗？</div>
	<div class="fenmob_content">
		<div class="fenmob_logo">
			<img src="/Public/images/fenmoblogo.png" alt="">
		</div>
		<div class="fenmob_contents">
			<p class="content_top">粉盟直播</p>
			<p class="content_bottom">粉盟是一款会吸粉、能购物的微信直播系统！与微分销
				深度打通，敬请免费体验！</p>
		</div>
	</div> -->
	<div class="content_logo">
		<img src="/Public/images/sqlogo.png" alt="">
	</div>
	<div class="conetnt_info">
		<div class="conetnt_info_top">
			授权后将实现 <span>粉盟直播</span> 与 微分销平台 视频购物的全新体验！
		</div>
		<div class="conetnt_info_bottom">
			<div class="info_bottom">
			粉盟直播是一款移动端智能商业直播系统，粉丝无需安装app，能把视频实时展现在微信公众号，
帮助商家快速提升粉丝量的同时，更好的展示商品的特色与魅力，提升购买率，现开放免费体验！
			</div>
		</div>
		<div class="conetnt_info_top">
			<div class="info_bottom" style="text-align:center">
				<% if(is_tel){ %>咨询电话:<% }else{ %>联系QQ:<% } %> <span class="info_tel"><%= tel %></span>
			</div>
		</div>
		<div class="sqbottom_logo">
			<img src="/Public/images/sqbottom_logo.png" alt="">
		</div>
	</div>
	<div class="txtCenter mgt15">
		<a href="<%= url %>" target="_blank" class="btn btn-primary j-alipay">立即体验</a>
	</div>
</script>

    <!--start ImgPicker -->
<script type="text/j-template" id="tpl_popbox_ImgPicker">
	<div id="ImgPicker">
		<div class="tabs clearfix">
		    <a href="javascript:;" class="active tabs_a fl" data-origin="imgpicker" data-index="1">选择图片</a>
		    <a href="javascript:;" class="tabs_a fl j-initupload" data-origin="imgpicker" data-index="2">上传新图片</a>
		</div>
		<!-- end tabs-->
		<div class="tabs-content" data-origin="imgpicker">
		    <div class="tc" data-index="1">
		        <ul class="img-list imgpicker-list clearfix"></ul>
				<!-- end img-list -->
				<div class="imgpicker-actionPanel clearfix">
					<div class="fl">
						<a href="javascript:;" class="btn btn-primary" id="j-btn-listuse">使用选中图片</a>
					</div>
					<div class="fr">
						<div class="paginate"></div>
					</div>
				</div>
				<!-- end imgpicker-actionPanel -->
		    </div>

		    <div class="tc hide" data-index="2">
				<div class="uploadifyPanel clearfix">
					<ul class="img-list imgpicker-upload-preview"></ul>
					<input type="file" name="imgpicker_upload_input" id="imgpicker_upload_input">
				</div>

				<div class="imgpicker-actionPanel">
					<a href="javascript:;" class="btn btn-primary" id="j-btn-uploaduse">使用上传的图片</a>
				</div>
				<!-- end imgpicker-actionPanel -->
		    </div>
		</div>
		<!-- end tabs-content -->
	</div>
</script>

<script type="text/j-template" id="tpl_popbox_ImgPicker_listItem">
	<% _.each(dataset,function(url){ %>
		<li>
			<span class="img-list-overlay"><i class="img-list-overlay-check"></i></span>
			<img src="<%= url %>">
		</li>
	<% }) %>
</script>

<script type="text/j-template" id="tpl_popbox_ImgPicker_uploadPrvItem">
	<li>
		<span class="img-list-btndel j-imgpicker-upload-btndel"><i class="gicon-trash white"></i></span>
		<span class="img-list-overlay"></span>
		<img src="<%= url %>">
	</li>
</script>
<!-- end ImgPicker -->

<!-- start ModulePicker -->
<script type="text/j-template" id="tpl_popbox_ModulePicker">
	<div id="ModulePicker">
		<ul class="modulePicker-list"></ul>
		<div class="clearfix mgt10">
			<div class="paginate"></div>
		</div>
	</div>
</script>

<script type="text/j-template" id="tpl_popbox_ModulePicker_item">
	<% _.each(dataset,function(data){%>
		<li class="clearfix">
			<a href="<%= data.link %>" target="_blank" class="modulePicker-list-title fl ovfEps a_hover" title="<%= data.title %>"><%= data.title %></a>
			<a href="javascript:;" class="btn btn-primary btn-small fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<!-- end ModulePicker -->

<!-- start GoodsAndGroupPicker -->
<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker">
	<div id="GoodsAndGroupPicker">
        <div class="tabs clearfix">
            <a href="javascript:;" class="active tabs_a fl" data-origin="goodsandgroup" data-index="1">商品</a>
            <a href="javascript:;" class="tabs_a fl j-tab-group" data-origin="goodsandgroup" data-index="2">商品分组</a>
        </div>
        <!-- end tabs -->
        <div class="tabs-content" data-origin="goodsandgroup">
            <div class="tc" data-index="1">
                <ul class="gagp-goodslist"></ul>
				<div class="clearfix mgt10">
					<div class="fl">
						<a href="javascript:;" class="btn btn-primary j-btn-goodsuse">确定使用</a>
					</div>
					<div class="paginate"></div>
				</div>
            </div>
            <div class="tc hide" data-index="2">
                <ul class="gagp-grouplist"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
        </div>
	</div>
</script>

<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker_goodsitem">
	<% _.each(dataset,function(data){%>
		<li class="clearfix" data-item="<%= data.item_id %>">
			<a href="<%= data.link %>" class="fl" target="_blank" title="<%= data.title %>">
			    <div class="table-item-img">
			    	<% if(data.is_compress){ %>
			        	<img src="<%= data.pic %>80x80" alt="<%= data.title %>">
			        <% }else{ %>
			        	<img src="<%= data.pic %>" alt="<%= data.title %>">
			        <% } %>
			    </div>
			    <div class="table-item-info">
			        <p><%= data.title %></p>
			        <span class="price">&yen;<%= data.price %></span>
			    </div>
			</a>
			<a href="javascript:;" class="btn fr j-select mgt15 mgr15">选取</a>
		</li>
	<% }) %>
</script>

<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker_groupitem">
	<% _.each(dataset,function(data){%>
		<li class="clearfix" data-group="<%= data.group_id %>" data-class_id="<%= data.class_id %>">
			<a href="<%= data.link %>" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
			<a href="javascript:;" class="btn fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<!-- end GoodsAndGroupPicker -->

<!-- start MgzAndMgzCate -->
<script type="text/j-template" id="tpl_popbox_MgzAndMgzCate">
	<div id="MgzAndMgzCate">
        <div class="tabs clearfix">
            <a href="javascript:;" class="active tabs_a fl" data-origin="MgzAndMgzCate" data-index="1">专题页面</a>
            <a href="javascript:;" class="tabs_a fl j-tab-mgzcate" data-origin="MgzAndMgzCate" data-index="2">页面分类</a>
        </div>
        <!-- end tabs -->
        <div class="tabs-content" data-origin="MgzAndMgzCate">
            <div class="tc" data-index="1">
                <ul class="mgz-list mgz-list-panel1"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
            <div class="tc hide" data-index="2">
                <ul class="mgz-list mgz-list-panel2"></ul>
				<div class="clearfix mgt10">
					<div class="fl">
						<a href="javascript:;" class="btn btn-primary j-btn-use">确定使用</a>
					</div>
					<div class="paginate"></div>
				</div>
            </div>
        </div>
	</div>
</script>

<script type="text/j-template" id="tpl_popbox_MgzAndMgzCate_item">
	<% _.each(dataset,function(data){%>
		<li class="clearfix">
			<a href="javascript:;" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
			<a href="javascript:;" class="btn fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<script type="text/j-template" id="tpl_popbox_storeList">
	<% _.each(dataset,function(data){%>
		<li class="clearfix">
			<a href="javascript:;" class="fl a_hover" target="_blank" title="<%= data.name %>"><%= data.name %></a>
			<a href="javascript:;" class="btn fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<!-- 自定义表单列表 -->
<script type="text/j-template" id="tpl_popbox_diyFormList">
	<% _.each(dataset,function(data){%>
		<li class="clearfix">
			<a href="javascript:;" class="fl a_hover" target="_blank" title="<%= data.subject_name %>"><%= data.subject_name %></a>
			<a href="javascript:;" class="btn fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<!-- 自定义项目列表 -->
<script type="text/j-template" id="tpl_popbox_subjectList">
	<% _.each(dataset,function(data){%>
	<li class="clearfix">
		<a href="javascript:;" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
		<a href="javascript:;" class="btn fr j-select">选取</a>
	</li>
	<% }) %>
</script>
<script type="text/j-template" id="tpl_popbox_redPocket">
	<% _.each(dataset,function(data){%>
	<li class="clearfix">
		<a href="javascript:;" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
		<a href="javascript:;" class="btn fr j-select">选取</a>
	</li>
	<% }) %>
</script>
<!-- end MgzAndMgzCate -->

<!-- start GamePicker -->
<script type="text/j-template" id="tpl_popbox_GamePicker">
	<div id="GamePicker">
        <div class="tabs clearfix">
            <a href="javascript:;" class="active tabs_a fl" data-origin="GamePicker" data-index="1">幸运大抽奖</a>
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="2">疯狂砸金蛋</a>
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="3">好运翻翻看</a>
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="4">骰子大王</a>
        </div>
        <!-- end tabs -->
        <div class="tabs-content" data-origin="GamePicker">
            <div class="tc" data-index="1">
                <ul class="game-list game-list-panel1"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
            <div class="tc hide" data-index="2">
                <ul class="game-list game-list-panel2"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
            <div class="tc hide" data-index="3">
                <ul class="game-list game-list-panel3"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
            <div class="tc hide" data-index="4">
                <ul class="game-list game-list-panel4"></ul>
				<div class="clearfix mgt10">
					<div class="paginate"></div>
				</div>
            </div>
        </div>
	</div>
</script>

<script type="text/j-template" id="tpl_popbox_GamePicker_item">
	<% _.each(dataset,function(data){%>
		<li class="clearfix">
			<a href="<%= data.link %>" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
			<a href="javascript:;" class="btn fr j-select">选取</a>
		</li>
	<% }) %>
</script>
<!-- end GamePicker -->

<script type="text/j-template" id="tpl_albums_main">
	<div id="albums">
		<div class="albums-title clearfix">
			<span class="fl">我的图库</span>
			<a href="javascript:;" class="fr" id="j-close" title="关闭"><i class="gicon-remove"></i></a>
		</div>
		<div class="albums-container clearfix">
			<div class="albums-cl fl">
				<div class="albums-cl-actions">
					<a href="javascript:;" id="j-addFolder"><i class="gicon-plus"></i><span>添加</span></a>
					<a href="javascript:;" id="j-renameFolder"><i class="gicon-pencil"></i><span>重命名</span></a>
					<a href="javascript:;" id="j-delFolder"><i class="gicon-trash"></i><span>删除</span></a>
				</div>
				<div class="albums-cl-tree" id="j-panelTree">
				</div>
			</div>
			<div class="albums-cr fl">
				<div class="albums-cr-actions">
					<span class="no-flash">
						<i class="no-text"></i>
						<input type="file" name="imgpicker_upload_input" id="j-addImg">
					</span>
					<a href="javascript:;" id="j-moveImg" class="btn btn-primary mgl10">移动图片到</a>
                    <a href="javascript:;" id="j-cateImg" class="btn btn-primary mgl5">移动分类到</a>
					<a href="javascript:;" id="j-delImg" class="btn btn-danger mgl5">删除所选图片</a>
					<input type="text" placeholder="请输入图片名称" style="width: 210px;padding:6px;vertical-align: 0;border-radius: 2px;border: 1px solid #ccc;"><a href="javascript:;" id="j-delImg" class="btn btn-primary mgl10 searchImg">搜索</a>
				</div>
				<div class="albums-cr-imgs" id="j-panelImgs">
				</div>
				<div class="albums-cr-ctrls clearfix">
					<a href="javascript:;" id="j-useImg" class="btn btn-primary fl">使用选中的图片</a>
					<div class="paginate" id="j-panelPaginate"></div>
				</div>
			</div>
		</div>
	</div>
</script>
<!-- end tpl_albums_main -->

<script type="text/j-template" id="tpl_albums_overlay">
	<div id="albums-overlay"></div>
</script>
<!-- end tpl_albums_overlay -->

<script type="text/j-template" id="tpl_albums_tree">
	<dl class="j-albumsNodes">
		<dt data-id="-1" data-add="1" data-rename="0" data-del="0">
		<i class="icon-folder open"></i>
		<span class="j-treeShowTxt"><em class="j-name">所有图片</em>(<em class="j-num"><%=dataset.total%></em>)</span>
		</dt>
		<dd><%=nodes%></dd>
	</dl>
</script>
<!-- end tpl_albums_tree -->

<script type="text/j-template" id="tpl_albums_tree_fn">
	<% _.each(dataset,function(item){%>
		<%if(item.parent_id==0 || item.id==0){%>
			<dl>
		<%}else{%>
			<dl style="display:none;">
		<%}%>
			<%if(item.id==0){%>
				<dt data-id="<%=item.id%>" data-add="0" data-rename="0" data-del="0">
			<%}else{%>
				<dt data-id="<%=item.id%>" data-add="1" data-rename="1" data-del="1">
			<%}%>
				<i class="icon-folder"></i>
				<span class="j-treeShowTxt"><em class="j-name"><%=item.name%></em>(<em class="j-num"><%=item.picNum%></em>)</span>
				<%if(item.id!=0){%>
					<input type="text" class="ipt j-ip" maxlength="10" value="<%=item.name%>"><i class="icon-loading j-loading"></i>
				<%}%>
			</dt>
			<dd></dd>
		</dl>
	<%})%>
</script>

<script type="text/j-template" id="tpl_albums_delFolder">
	<div>
		<p class="ftsize14 bold">删除该文件夹同时会删除其子文件夹，是否继续？</p>
		<div class="radio-group mgt5">
			<label><input type="radio" name="isDelImgs" value="1" checked>不删除图片</label>
			<label><input type="radio" name="isDelImgs" value="2">同时删除图片</label>
		</div>
	</div>
</script>
<!-- end tpl_albums_delFolder -->

<script type="text/j-template" id="tpl_albums_imgs">
	<%if(dataset){%>
	<ul class="clearfix">

		<% _.each(dataset,function(item,index){ %>
			<li class="fl" data-id="<%=item.id%>">
				<img src="<%=item.file%>">
				<div class="albums-cr-imgs-selected"><i></i></div>
				<div class="albums-edit">
					<span><i class="gicon-pencil edit-img-name"></span></i>
					<p><%=item.name%></p>
					<div class="img-name-edit">
						<input type="text" value="<%=item.name%>" style="width:60%;" name="rename" class="file_name"/>
						<a href="javascript:;" class="renameImg">确定</a>
					</div>
				</div>
			</li>
		<% }) %>
	</ul>
	<%}else{%>
		<p class="albums-cr-imgs-noPic j-noPic">暂无图片</p>
	<%}%>
</script>
<!-- end tpl_albums_imgs -->

<script type="text/j-template" id="tpl_popup_selectGoods">
	<div>
		<input type="text" name="title" placeholder="请输入商品关键词" class="input xlarge" value="<%=formdata.title || ""%>">
	    <select name="store_lists" class="select">
	    	<option value="0" selected>所有门店</option>
	        <% _.each(store_list,function(store){ %>
            	<option value="<%= store.merchant_shop_id %>" <% if (formdata.merchant_shop_id  == store.merchant_shop_id){ %>selected<% } %>><% if (store.name){ %><%= store.name %><% } %><%= store.name%></option>
        	<% }) %>
	    </select>
	    <select name="class_id" class="select small newselect">
            <option value="-1" selected>所有分类</option>
            <option value="0" <% if (formdata.class_id === 0 ){ %>selected<% } %>>未分类</option>
            <% if(classlists.length){ %>
            	 <% _.each(classlists,function(item){ %>
                	<option value="<%= item.class_id %>" <% if (formdata.class_id  == item.class_id){ %>selected<% } %>><% if (item.temp){ %><%= item.temp %><% } %><%= item.class_name%></option>
            	<% }) %>
            <% } %>
        </select>
		<select name="item_status" class="select small newselect">
			<option value="" selected>所有状态</option>
			<option value="0" <% if(item_status == 0 && item_status != ''){ %>selected<% } %> >已下架</option>
			<option value="1" <% if(item_status == 1){ %>selected<% } %> >已上架</option>
		</select>
	    <a href="javascript:;" class="btn btn-primary j-search"><i class="gicon-search white"></i>查询</a>
	</div>

    <table class="wxtables mgt10 table-selectGoods">
    	<colgroup>
			<col width="5%">
			<col width="28%">
			<col width="5%">
			<col width="28%">
			<col width="5%">
			<col width="28%">
		</colgroup>
        <thead>
            <tr>
                <td></td>
                <td>商品</td>
                <td></td>
                <td>商品</td>
                <td></td>
                <td>商品</td>
            </tr>
        </thead>
        <tbody>
            <% if(dataset.length){ %>
                <tr>
					<% console.log(dataset) %>
                    <% _.each(dataset,function(item,index){ %>
                            <td class="txtCenter">
                            	<%if(selectIds.indexOf(item.item_id)<0){%>
                            		<%
                            			var isSelected=false;
	                            		if(curPageCache && curPageCache.ids.join(",").indexOf(item.item_id)>=0){
                            				isSelected=true;
	                            		}
                            		%>
	                        		<a href="javascript:;" class="icon-select j-select <%if(isSelected){%>cur<%}%>" data-index="<%=index%>"></a>
	                                <input type="checkbox" class="j-chkbox" data-index="<%=index%>" data-itemid="<%= item.item_id %>" style="display:none;" <%if(isSelected){%>checked<%}%>>
                                <%}%>
                            </td>
                            <td style="border-right: 1px solid #e7e7eb;">
                                <a href="javascript:;" class="block" target="_blank" title="<%= item.title %>">
                                    <div class="table-item-img">
                                        <img src="<%= item.pic %><%if(item.is_compress){%>80x80<%}%>" alt="<%= item.title %>">
                                    </div>
                                    <div class="table-item-info">
                                        <p><%= item.title %></p>
                                        <span class="price">现价 &yen;<%= item.price %></span>
										<% if(item.status == 0){ %>
										<div class="off-shelf">已下架</div>
										<% } %>
										<div class="active_name">
											<% if(item.item_type == 1){ %>
												秒杀商品
											<% }else if(item.item_type == 2){ %>
												单人团商品
											<% }else if(item.item_type == 3){ %>
												砍价商品
											<% }else if(item.item_type == 4){ %>
												大团商品
											<% }else if(item.item_type == 5){ %>
												限时折扣
											<% }else if(item.item_type == 6){ %>
												小团商品
											<% }else if(item.item_type == 7){ %>
												阶梯团商品
											<% } %>
										</div>
                                        <%if(selectIds.indexOf(item.item_id)>=0){%>
                                        	<div class="label">已选择该商品</div>
                                    	<%}%>
                                    </div>
                                </a>
                            </td>
                        <% if((index+1)%3==0){%>
                            </tr><tr>
                        <%}%>
                    <% }) %>
                </tr>
            <% }else{ %>
                <tr><td colspan="6" class="txtCenter">暂无数据</td></tr>
            <% } %>
        </tbody>
    </table>

    <div class="mgt15 clearfix">
    	<%if(selectMod==2){%>
        <div class="fl">
            <a href="javascript:;" class="btn btn-primary j-selectAll">全选</a>
            <a href="javascript:;" class="btn btn-primary j-selectReverse">反选</a>
            <a href="javascript:;" class="btn btn-primary j-cancelSelectAll">取消全选</a>
            <a href="javascript:;" class="btn btn-success j-use">使用选中的商品</a>
        </div>
        <%}%>
        <div class="fr paginate"><%= page %></div>
        <!-- end paginate -->
    </div>
    <!-- end tables-btmctrl -->
</script>
<!-- end tpl_item_importTable -->

<script type="text/j-template" id="tpl_popup_selectBackups">
	<div class="Backups_list">
		<ul>
			<% if(lists.length){ %>
				<% _.each(lists,function(item){ %>
				<li>
					<h2 class="J-rename" data-id="<%= item.page_design_id %>"><%= item.name %><i class="edit-rename J-edit-rename"></i></h2>
					<p><%= item.add_time %></p>
					<div class="edit_Backups_action">
						<a href="<%= item.link %>" class="btn btn-success J-getData" data-id="<%= item.page_design_id %>">读取</a>
						<a href="javascript:;" class="btn btn-danger J-delData" data-id="<%= item.page_design_id %>">删除</a>
					</div>
				</li>
				<% }) %>
			<% } else { %>
				<div class="J_noData" style="line-height:50px; text-align:center;font-size:18px;color:#ccc;">无备份数据</div>
			<% } %>
		</ul>
		<div class="add_Backups_action">
			<a href="javascript:;" class="add_Backups btn btn-primary J_add_Backups">新增备份</a>
		</div>
	</div>
</script>

<script type="text/j-template" id="tpl_popup_addBackups">
	<li>
		<h2 class="J-rename" data-id="<%= page_design_id %>"><%= name %><i class="edit-rename J-edit-rename"></i></h2>
		<p><%= add_time %></p>
		<div class="edit_Backups_action">
			<a href="<%= link %>" class="btn btn-success J-getData" data-id="<%= page_design_id %>">读取</a>
			<a href="javascript:;" class="btn btn-danger J-delData" data-id="<%= page_design_id %>">删除</a>
		</div>
	</li>
</script>
<!-- end tpl_popup_selectBackups-->

<script type="text/j-template" id="tpl_technician_main">
	<div id="technician">
		<div class="technician-title clearfix">
			<span class="fl">选择技师</span>
			<a href="javascript:;" class="fr" id="j-close-technician" title="关闭"><i class="gicon-remove"></i></a>
		</div>
		<div class="technician-container clearfix">
			<div class="technician-cl fl">
				<form action="" id="technician-form">
					<div class="technician-cl-actions">
						<select name="store_id" class="select">
							<option value="0">选择门店</option>
							<% _.each(dataset,function(item){ %>
							<option value="<%= item.merchant_shop_id %>"><%= item.name %></option>
							<% }) %>
						</select>
						<input type="text" class="input" name="real_name" placeholder="技师名称">
						<a href="javascript:;" class="btn btn-primary j-search-tech">搜索</a>
						<!--<input type="hidden" name="page" value="1">-->
					</div>
				</form>
				<div class="technician-cl-imgs">
					<ul class="clearfix" id="leftTechList">

					</ul>
				</div>
				<div class="technician-cl-ctrls clearfix">
					<!--<div class="paginate" id="j-panelPaginate"><a href="/Design/getImgList/v/7/p/1.html" class="prev">上一页</a><a href="/Design/getImgList/v/7/p/1.html">1</a><a class="cur">2</a><a href="/Design/getImgList/v/7/p/3.html">3</a><a href="/Design/getImgList/v/7/p/4.html">4</a><a href="/Design/getImgList/v/7/p/5.html">5</a><span class="dotted">...</span><a href="/Design/getImgList/v/7/p/3.html" class="next">下一页</a></div>-->

				</div>
			</div>
			<div class="technician-cr fl">
				<div class="technician-cr-actions">
					<p>已选<i class="technicianNum">6</i>位技师</p>
				</div>
				<div class="technician-cr-imgs">
					<ul class="clearfix" id="rightTechList">

					</ul>
				</div>
				<div class="technician-cr-ctrl clearfix">
					<a href="javascript:;" class="btn btn-primary j-save-technician">确认选择</a>
				</div>
			</div>
		</div>
	</div>
	<div id="technician-overlay"></div>
</script>
<!--左边技师弹层-->
<script type="text/j-template" id="tpl_single_tech">
	<% _.each(dataset,function(item){ %>
		<li class="fl li<%= item.technician_id %>" data-technician_id="<%= item.technician_id %>">
			<div class="imgs-cont <% if(item.selected){ %>selected <% } %> chooseTech" data-name="<%= item.real_name %>" data-imgurl="<%= item.headimgurl %>">
				<img src="<%= item.headimgurl %>" alt="">
				<div class="imgs-selected">
					<i></i>
				</div>
			</div>
			<p><%= item.real_name %></p>
		</li>
	<% }) %>
</script>
<!--右边技师弹层-->
<script type="text/j-template" id="tpl_choose_tech">
	<% _.each(dataset,function(item){ %>
		<li class="fl id<%= item.technician_id %>" data-technician_id="<%= item.technician_id %>">
			<div class="imgs-cont">
				<img src="<%= item.headimgurl %>" alt="">
				<i class="j-del-tech"></i>
			</div>
			<p><%= item.real_name %></p>
		</li>
	<% }) %>
</script>

<script type="text/j-template" id="tpl_popup_selectSubject">
	<div>
		<input type="text" name="title" placeholder="请输入项目关键词" class="input xlarge" value="<%=formdata.title || ""%>">
		<a href="javascript:;" class="btn btn-primary j-search"><i class="gicon-search white"></i>查询</a>
	</div>

	<table class="wxtables mgt10 table-selectGoods">
		<colgroup>
			<col width="5%">
			<col width="28%">
			<col width="5%">
			<col width="28%">
			<col width="5%">
			<col width="28%">
		</colgroup>
		<thead>
		<tr>
			<td></td>
			<td>项目</td>
			<td></td>
			<td>项目</td>
			<td></td>
			<td>项目</td>
		</tr>
		</thead>
		<tbody>
		<% if(dataset.length){ %>
		<tr>
			<% _.each(dataset,function(item,index){ %>
			<td class="txtCenter">
				<%if(selectIds.indexOf(item.item_id)<0){%>
				<%
				var isSelected=false;
				if(curPageCache && curPageCache.ids.join(",").indexOf(item.item_id)>=0){
				isSelected=true;
				}
				%>
				<a href="javascript:;" class="icon-select j-select <%if(isSelected){%>cur<%}%>" data-index="<%=index%>"></a>
				<input type="checkbox" class="j-chkbox" data-index="<%=index%>" data-itemid="<%= item.item_id %>" style="display:none;" <%if(isSelected){%>checked<%}%>>
				<%}%>
			</td>
			<td style="border-right: 1px solid #e7e7eb;">
				<a href="javascript:;" class="block" target="_blank" title="<%= item.title %>">
					<div class="table-item-img">
						<img src="<%= item.pic %><%if(item.is_compress){%>80x80<%}%>" alt="<%= item.title %>">
					</div>
					<div class="table-item-info">
						<p><%= item.title %></p>
						<span class="price">现价 &yen;<%= item.price %></span>
						<%if(selectIds.indexOf(item.item_id)>=0){%>
						<div class="label">已选择该商品</div>
						<%}%>
					</div>
				</a>
			</td>
			<% if((index+1)%3==0){%>
		</tr><tr>
			<%}%>
			<% }) %>
		</tr>
		<% }else{ %>
		<tr><td colspan="6" class="txtCenter">暂无数据</td></tr>
		<% } %>
		</tbody>
	</table>

	<div class="mgt15 clearfix">
		<%if(selectMod==2){%>
		<div class="fl">
			<a href="javascript:;" class="btn btn-primary j-selectAll">全选</a>
			<a href="javascript:;" class="btn btn-primary j-selectReverse">反选</a>
			<a href="javascript:;" class="btn btn-primary j-cancelSelectAll">取消全选</a>
			<a href="javascript:;" class="btn btn-success j-use">使用选中的商品</a>
		</div>
		<%}%>
		<div class="fr paginate"><%= page %></div>
		<!-- end paginate -->
	</div>
	<!-- end tables-btmctrl -->
</script>
<!-- end tpl_item_importTable -->
    <script type="text/j-template" id="tpl_sku">
        <div class="form-controls">
            <input type="text" class="J_SkuAlias input" placeholder="名称" maxlength="15">
            <input type="text" class="J_SkuPrice input mini" placeholder="单价">
            <input type="text" class="J_WrapperPrice input mini" placeholder="打包费">
            <span class="J_RemoveSku del_list"></span>
            <input type="hidden" value="0" class="J_SkuId">
        </div>
    </script>
    <script type="text/j-template" id="tpl_add_step2_goodsGroupLabelList_item">
        <% if(dataset.length){ %>
            <ul class="labelList j-goodsGroupLabelList clearfix">
                <% _.each(dataset,function(item){ %>
                    <% if(item.isCheck){ %>
                        <li><span><%= item.title %></span><i class="gicon-remove white j-del" data-id="<%= item.id %>"></i></li>
                        <% } %>
                <% }) %>
            </ul>
            <% } %>
    </script>
    <!-- end tpl_add_step2_goodsGroupLabelList_item -->
    <script type="text/j-template" id="tpl_add_step2_imgList">
        <ul class="img-list clearfix">
            <% _.each(dataset,function(item,index){ %>
                <li data-index="<%=index%>">
                    <span class="img-move img-move-left"></span>
                    <span class="img-move img-move-right"></span>
                    <span class="img-list-btndel j-delimg"><i class="gicon-trash white"></i></span>
                    <span class="img-list-overlay"></span>
                    <img src="<%= item %>">
                </li>
                <% }) %>
                    <li class="img-list-add j-addimg">+</li>
        </ul>
        <input type="hidden" name="imgs" class="j-imglist-dataset" value="<%= str_dataset %>">
        <span class="fi-help-text">建议上传尺寸750px * 420px</span>
    </script>
    <!-- end tpl_add_step2_imgList -->
    <script type="text/j-template" id="tpl_add_step2_normslist">
        <% _.each(dataset,function(item,index){%>
            <dl class="normslist" data-index="<%= index %>" data-id="<%= item.id %>">
                <dt class="clearfix">
                    <input type="text" class="fl input mini j-normsName" value="<%= item.name %>" maxlength="4" data-Originalname="<%= item.name %>" data-Originalid="<%= item.id %>">
                    <span class="fi-help-text"></span>
                    <a href="javascript:;" class="fr j-delNorms" title="移除"><i class="gicon-trash"></i>移除</a>
                </dt>
                <dd class="clearfix skuitemPanel">
                    <% if(item.props.length){ %>
                        <ul class="labelList labelList-sku clearfix fl">
                            <% _.each(item.props,function(val,index){ %>
                                <li><span><%= props[val] %></span><i class="gicon-remove white j-delNormsVal" data-index="<%= index %>"></i></li>
                                <% }) %>
                        </ul>
                        <% } %>
                            <input type="text" class="input mini fl j-addNormsVal-ipt">
                            <a href="javascript:;" class="btn btn-primary btn-small j-addNormsVal">添加</a>
                </dd>
            </dl>
            <% }) %>
    </script>







    <!-- end tpl_add_step2_normslist -->
    <script type="text/j-template" id="tpl_add_step2_sku">
        <table class="wxtables wxtables-sku">
            <thead>
                <tr>
                    <% _.each(norms,function(item,index){ %>
                        <td>
                            <%= item.name %>
                        </td>
                        <% }) %>
                            <td>原价</td>
                            <td>现价</td>
                            <td>供货价</td>                            <td>库存</td>
                            <td>商品编码</td>
                            <td>销量</td>
                            <td>设置会员价</td>
                </tr>
            </thead>
            <tbody>
                <% for(var key in sku){ %>
                    <tr data-key="<%= key %>" data-skuId="<%= sku[key].skuId %>">
                        <% _.each(sku[key].props,function(id,item){ %>
                            <td>
                                <%= props[id] %>
                            </td>
                            <% }) %>
                                <td>
                                    <input type="text" class="input moreMini j-price-modify" data-name="o_price" value="<%= sku[key].o_price %>">元
                                    <br/>
                                                                    </td>
                                <td>
                                    <input type="text" class="input moreMini j-price-modify" data-name="price" value="<%= sku[key].price %>">元
                                    <br/>
                                                                    </td>
                                <td>
                                        <input type="text" class="input moreMini j-price-modify" data-name="supplier_price" value="<%= sku[key].supplier_price %>">元
                                    </td>                                <td>
                                    <input type="text" class="input moreMini j-price-modify" data-name="stock" value="<%= sku[key].stock %>">
                                </td>
                                <td>
                                    <input type="text" class="input moreMini j-price-modify" data-name="code" value="<%= sku[key].code %>">
                                </td>
                                <td>
                                    <%= sku[key].salenum %>
                                </td>
                                <td width="60">
                                    <span class="setfxs-pic options">
                        <a href="javascript:;" class="btn J-options-slideToggle">设置</a>
                        <div class="setfxs-box">
                            <table class="wxtables tables-form">
                                <colgroup>
                                    <col width="30%">
                                    <col width="70%">
                                </colgroup>
                                                            </table>
                        </div>
                    </span>
                                </td>
                    </tr>
                    <% } %>
            </tbody>
        </table>
    </script>
    <!-- end tpl_add_step2_sku -->
    <script type="text/j-template" id="tpl_item_class">
        <div class="categoryP">
            <div class="category">
                <% _.each(data,function(row1){ %>
                    <div class="first_floor j-chang-firstfloor">
                        <span class="j-first_floor gicon-plus"></span>
                        <label for="">
                            <input type="checkbox" class="t1" value="<%= row1.class_id %>" />
                            <span><%= row1.class_name %></span>
                        </label>
                        <% _.each(row1._child,function(row2){ %>
                            <div class="mid_floor j-change">
                                <span class="j-mid_floor gicon-plus"></span>
                                <label for="">
                                    <input type="checkbox" class="t2" value="<%= row2.class_id %>" />
                                    <span><%= row2.class_name %></span>
                                </label>
                                <% _.each(row2._child,function(row3){ %>
                                    <div class="last_floor j-midchange">
                                        <label for="">
                                            <input type="checkbox" class="t3" value="<%= row3.class_id %>" />
                                            <span><%= row3.class_name %></span>
                                        </label>
                                    </div>
                                    <% }) %>
                            </div>
                            <% }) %>
                    </div>
                    <% }) %>
            </div>
        </div>
    </script>
    <!-- end tpl_add_step2_sku -->
    <!-- sku Img  -->
    <script type="text/j-template" id="tpl_imgsku">
        <div class="imgsku">
            <label class="fi-name"><span class="colorRed">*</span>商品图片：</label>
            <div class="form-controls" id="j-skuImg"></div>
        </div>
    </script>
    <script type="text/j-template" id="tpl_imgskulist">
        <table class="wxtables wxtables-sku newtable">
            <tbody>
                <% _.each(data,function(item){ %>
                    <tr>
                        <td><span><%= item.sku_name %></span></td>
                        <td><span class="imgwrapper spanpd10"><img src="<%= item.sku_img%>" width="100%" alt=""></span>
                            <input type="hidden" name="" value="<%= item.sku_id %>">
                        </td>
                        <td width="100"><span class="spanpd10"><a href="javascript:;" title="选择图片" data-skuId="<%= item.sku_id %>" class="btn btn-primary j-getskuimg">选择图片</a></span></td>
                    </tr>
                    <% }) %>
            </tbody>
        </table>
    </script>
    <!-- sku color custom  -->
    <script type="text/j-template" id="tpl_skuColorCustom">
        <li class="custom-list">
            <input class="J_addCheckbox" type="checkbox" name="" value="<%= data.key %>" checked>
            <input class="mini input J_custom_name" type="text" name="" data-v="<%= data.key %>" value="" placeholder="其他<%= data.name %>" maxlength="30">
        </li>
    </script>
    <script type="text/j-template" id="tpl-select-merchantshop">
        <div class="merchantshop_popbox">
            <div class="merchantshop_overlay"></div>
            <div class="merchantshop_cont">
                <div class="tit clearfix">
                    <p class="fl">选择门店</p>
                    <span class="del_pop fr"></span>
                </div>
                <div class="content">
                    <div class="search_shop clearfix">
                        <input type="text" value="<%= name %>" class="search_put  merchantshop_name fl" placeholder="例：文一店" >
                        <span class="merchantshop_name_btn fr">搜索</span>
                    </div>
                    <div class="content_detail">
                        <div class="content_tit clearfix">
                            <p class="fl">共<%= length %>家</p>
                            <p class="fr">已选<h class="selected_num" >0</h>家</p>
                        </div>
                        <div class="select_merchantshop">
                            <% _.each(dataset, function(shop){ %>
                            <label data-merchant_shop_id = "<%= shop.merchant_shop_id %>" class="select_item">
                                <span></span>
                                <h class="s_name" ><%= shop.name %></h>
                            </label>
                            <% }) %>
                        </div>

                    </div>
                </div>
                <div class="confirm_pop clearfix">
                    <label class="fl all_choose"><span></span>全选</label>
                    <span class="del_pop">确定</span>
                </div>

            </div>
        </div>
    </script>
    <script type="text/j-template" id="tpl_addRow">
        <% _.each(dataset,function(item){ %>
            <tr data-merchant_shop_id="<%= item.merchant_shop_id %>">
                <td class="merchantshop_name">
                    <%= item.merchant_shop_name %>
                </td>
                <!-- <td><input type="text" data-key_name = "original_price" class="input moreMini json_data original_price" value="<%= item.original_price %>">元</td> -->
                <td>
                    <input type="text" data-key_name="price" class="input moreMini json_data price" value="<%= item.price %>">元</td>
                <!-- <td><input type="text" data-key_name = "merchant_shop_num" class="input moreMini json_data merchant_shop_num" value="<%= item.merchant_shop_num %>"></td> -->
                <td>
                    <button class="del_item_merchant btn btn-small btn-danger">删除</button>
                </td>
            </tr>
            <% }) %>
    </script>

<!--end front template  -->

<script src="http://md.yuxiaocloud.com/Public/js/dist/lib-min.js"></script>
<script src="http://md.yuxiaocloud.com/Public/plugins/jbox/jquery.jbox-min.js"></script>
<script src="http://md.yuxiaocloud.com/Public/plugins/zclip/jquery.zclip-min.js"></script>
<script src="http://md.yuxiaocloud.com/Public/plugins/zclip/zclip-min.js"></script>

<!-- 线上环境 -->
    <script src="http://md.yuxiaocloud.com/Public/js/dist/component-min.js"></script>
    <script src="http://md.yuxiaocloud.com/Public/modulesJs/scroll.js"></script><script>
    var need_verify_set = false;
</script>
<script>
    function setCookie(c_name,value,expiredays){
        var exdate=new Date();
        exdate.setDate(exdate.getDate()+expiredays);
        document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+";path=/"
    }

    function getCookie(c_name){
        if (document.cookie.length>0){
            c_start=document.cookie.indexOf(c_name + "=")
            if (c_start!=-1){
                c_start=c_start + c_name.length+1
                c_end=document.cookie.indexOf(";",c_start)
                if (c_end==-1) c_end=document.cookie.length
                return unescape(document.cookie.substring(c_start,c_end))
            }
        }
        return ""
    }

    //当前Notice
    var cur_notice = "";
    function checkCookie(){
        var last_notice = getCookie("notice_info");
        if(cur_notice != "" && cur_notice != last_notice){
            //有更新
            $("#tipLowIEVer").show();
            setCookie("notice_info", cur_notice, 1);
            setCookie("notice_hide", null);
        }else{
            //是否点击关闭 点击后1天不显示
            var is_show = getCookie("notice_hide");
            if(is_show == 1){
                //已点击关闭过
                $("#tipLowIEVer").hide();
            }
        }
    }
    //notice公告验证
    checkCookie();

    $(function(){
        $(".alert-delete").click(function(){
            //点击关闭，1天内不显示
            setCookie("notice_hide", 1, 1);
        })
    })
</script>

<!--[if lt IE 10]>
<script src="/Public/js/jquery/jquery.placeholder-min.js"></script>
<script>
    $(function(){
        //修复IE下的placeholder
        $('.input,.textarea').placeholder();
    });
</script>
<![endif]-->


<block name="js">
    <!-- 线上环境 -->
        <script src="http://md.yuxiaocloud.com/Public/plugins/ueditor/diyUeditor-min.js"></script>    <script src="http://md.yuxiaocloud.com/Public/plugins/ueditor/diy_imgpicker.js"></script>
    <script src="http://md.yuxiaocloud.com/Public/plugins/uploadify/jquery.uploadify.min.js?ver=6593"></script>
    <script src="http://md.yuxiaocloud.com/Public/plugins/My97DatePicker/WdatePicker.js"></script>
    <script src="http://md.yuxiaocloud.com/Public/js/dist/home/Item/add_step2_storage.js?ver=5766"></script>
    <script type="text/json" id="J_InitDescr"></script>
    <script type="text/json" id="J_Initattr"></script>
    <script>
        var merchantshop_list ='' ? JSON.parse('') : [];
    </script>
    <!--<script src="/Public/modulesJs/popup_selectMshop.js"></script>-->
    <script>
    $(function() {
        window.var_bug = true;
        //门店加载初始化
        if ('') {
            //获得已选择门店的num
            var num = merchantshop_list.length;
            $(".merchant-help").html("已选择" + num + "家门店");
        }
        var descr = document.getElementById('J_InitDescr').innerHTML;
        if("2"!=29){
            window.ue = UE.getEditor('container');
        }




        window.descriptions_json = descr ? JSON.parse(descr) : [];
        if (descriptions_json.length > 0) {
            load_json(descriptions_json, 'd');
        }
        var attr=document.getElementById('J_Initattr').innerHTML;

        window.attributes_json = attr ? JSON.parse(attr) : [];
        if (attributes_json.length > 0) {
            attr_json(attributes_json,'d');
        }

        //图片预加载
        var item_id = "";
        if (item_id > 0) {
            window.is_update = true;
            window.img_urls = '' == '' ? [] : JSON.parse('');
        }
        var pre_str = window.img_urls;
        if (pre_str != undefined) {
            HYD.ItemAdd.imglist = pre_str;
            reRender_imglist();
        };

        //商品分类初始化
        var item_class_id = "";
        $('select[name=class_id]').find('option').each(function() {
            if (item_class_id == $(this).val()) {
                $(this).attr('selected', 'selected');
            }
        })
        var item_rank_id = "";
        $('select[name=rank_id]').find('option').each(function() {
            if (item_rank_id == $(this).val()) {
                $(this).attr('selected', 'selected');
            }
        })
        $('.bhaide').on('click', function() {
            $(this).parent().children('.setfxs-box').slideDown();
            $(this).parent().children('.J-close-setbox').attr('style', 'opacity:1');
        });
        $('.J-close-setbox').on('click', function() {
            $(this).parent().children('.setfxs-box').slideUp();
            $(this).attr('style', 'opacity:0');
        });
        // 商品图片排序
        // 图片左移
        $(document).on('click', '.img-list>li .img-move-left', function() {
            var me = $(this);
            var curindex = me.closest('li').index();
            var html = me.closest('li');
            var str = '';
            if (curindex != 0) {
                curindex--;
                me.closest('ul').find('li').eq(curindex).before(html);
                me.closest('ul').find('li').not('.img-list-add').each(function(index, el) {
                    var imgsrc = $(this).children('img').attr('src');
                    str += imgsrc + ','
                });
                str = str.substring(0, str.length - 1)
                $('.j-imglist-dataset[name=imgs]').val(str);
            };
        });
        // 图片右移
        $(document).on('click', '.img-list>li .img-move-right', function() {
            var me = $(this),
                len = me.closest('ul').find('li').length - 1;
            var curindex = me.closest('li').index();
            var str = '';
            var html = me.closest('li');
            if (curindex != (len - 1)) {
                curindex++;
                me.closest('ul').find('li').eq(curindex).after(html);
                me.closest('ul').find('li').not('.img-list-add').each(function(index, el) {
                    var imgsrc = $(this).children('img').attr('src');
                    str += imgsrc + ','
                });
                str = str.substring(0, str.length - 1)
                $('.j-imglist-dataset[name=imgs]').val(str);
            };
        });

        //限制字数
        $('.J_goods_name').keyup(function() {
            var len = $(this).val().length;
            var _self = $(this);
            if (len > 64) {
                var str = _self.val().substr(0, 64);
                _self.val(str);
            }
        });

        //        开关
        $('.is_show_sale_div').click(function() {
            var on_ = $(this).find('input').attr('checked');
            if (on_ == "checked") {
                $('input[name=is_show_sale]').val(1);
            } else {
                $('input[name=is_show_sale]').val(2);
            }
        })
        $('.hide_stock_div').click(function() {
            var on_ = $(this).find('input').attr('checked');
            if (on_ == "checked") {
                $('input[name=hide_stock]').val(0);
            } else {
                $('input[name=hide_stock]').val(1);
            }
        })
        $('.is_on_sale').click(function() {
            var on_ = $(this).find('input').attr('checked');
            if (on_ == "checked") {
                $('input[name=on_sale]').val(1);
            } else {
                $('input[name=on_sale]').val(0);
            }
        })

        $(document).on('click','.j-addgoods',function(){
            var _self = $(this);
            HYD.popbox.ImgPicker(function(data) {
                var html = '<img src="' + data[0] +'" width="80" height="80">';
                _self.html(html);
                _self.closest(".form-controls").find(":hidden").val(data[0]);
            });
        })

        /*$(document).on("click", ".j-addimg", function() {
            var _self = $(this);
            HYD.popbox.ImgPicker(function(data) {
                _.each(data, function(item) {
                    var html = '<li><img src="' + item + '" width="80" height="80">' +
                            '<input type="hidden" name="imgs[]" value="' + item + '">' +
                            '</li>';
                    _self.before(html);
                });
            });
        });*/

    });
    //删除标题时提示
    function show_alert(title, content, callback) {
        $.jBox.show({
            width: 400,
            title: title,
            content: content,
            btnOK: {
                onBtnClick: function(box) {
                    callback(box);
                }
            }
        });
    }

    $('.j_addAttrs').click(function() {
        var leng = $(".goods_attr").length;
        var add_html = $('.add_attribute').html();

        if (leng <= 5) {
            if ($(this).parents('.div_attribute').find('.goods_attr').last().html()) {
                $(this).parents('.div_attribute').find('.goods_attr').last().after(add_html);
            } else {
                $(this).parents('.div_attribute').prepend(add_html);
            }
        } else {
            HYD.hint("danger", "商品描述标题不得超过五条哦");
        }

    })
    //点击增加描述标题
    $('.j_addGoods').click(function() {
            var leng = $(".goods_desc").length;
            var add_html = $('.add_descriptions').html();

            if (leng <= 20) {
                if ($(this).parents('.div_descriptions').find('.goods_desc').last().html()) {
                    $(this).parents('.div_descriptions').find('.goods_desc').last().after(add_html);
                } else {
                    $(this).parents('.div_descriptions').prepend(add_html);
                }
            } else {
                HYD.hint("danger", "商品描述标题不得超过二十条哦");
            }

        })
        //点击删除商品描述标题
    $(document).on("click", '.del_desc', function() {
        var self_ = $(this);
        show_alert('删除确认', '确定删除该标题以及标题下所有内容么？', function(jBox) {
            $.jBox.close(jBox);
            self_.parents('.goods_desc').remove();

        });
    })

    $(document).on("click", '.del_attr', function() {
        var self_ = $(this);
        show_alert('删除确认', '确定删除该标题以及标题下所有内容么？', function(jBox) {
            $.jBox.close(jBox);
            self_.parents('.goods_attr').remove();

        });
    })
        //点击添加商品描述内容
    $(document).on('click', '.add_desc', function() {
            var leng = $(this).parents(".goods_desc").find("input[name='descriptions_detail']").length;
            var add_html = $('.add_descriptions_d').html();
            if (leng <= 20) {
                $(this).parents('.goods_desc').last().append(add_html);
            } else {
                HYD.hint("danger", "一条标题下的描述内容不得超过二十条");
            }


        })

    //商品属性名称分类
    $(document).on('click', '.add_attr', function() {
        var leng = $(this).parents(".goods_attr").find("input[name='attribute_class']").length;
        var add_html = $('.add_attribute_d').html();
        if (leng <= 4) {
            $(this).parents('.goods_attr').last().append(add_html);
        } else {
            HYD.hint("danger", "一条标题下的描述内容不得超过五条");
        }


    })

        //点击删除商品描述内容
    $(document).on('click', '.del_desc_d', function() {
            $(this).prev().remove();
            $(this).remove();

        })
    $.jBox.confirm = function(message, callback){
        message = message || "删除后将不可恢复，是否继续？";
        callback = callback || function(){};
        $.jBox.show({
            title: "提示",
            content: _.template($("#tpl_jbox_simple").html(), {
                content: message
            }),
            btnOK: {
                onBtnClick: function(jbox) {
                    $.jBox.close(jbox);
                    callback();
                }
            }
        });
    }
    $(document).on("click", ".selectImgList img", function(){
        var _self = $(this);
        $.jBox.confirm("真的删除?", function(){
            _self.closest("li").remove();
        });
        return false;
    });

    $('.J_AddSku').click(function(){
        if(6 <= $('.J_Sku .J_RemoveSku').size()) {
//            HYD.hint('danger', '至多可以添加6个规格');
//            return false;
        }

        var _html = _.template($('#tpl_sku').html(), {});
        $('.J_Sku').append(_html);
    });

    $(document).on('click', '.J_RemoveSku', function(){
        if(1 == $(this).parent().index()) {
            $(this).siblings('input').val('');
        }
        else {
            $(this).parent().remove();
        }
    });
    var ag=0;
    $('.J_AddOtherTest').click(function(){
         ag++;
        var _html = _.template($('#tpl_skuOtherTest'+ag).html(), {});
        $('.formitemsss').append(_html);
    });


    $('.J_AddTest').click(function(){
       if(6 <= $('.formitemsss .J_WrapperPrice').size()) {
            HYD.hint('danger', '至多可以添加5个属性分类');
           return false;
        }
        var _html = _.template($('#tpl_skuTest').html(), {});
        $('.formitemsss').append(_html);
    });


    $(document).on('click', '.J_RemoveTest', function(){
        for(var i=1;i<$('.formitemsss .J_WrapperPrice').size()+1;i++){
            if($(this).data('test')==i){
                $('#J_WrapperPrice'+i).remove();
                $('#jj'+i).remove();
            }
        }
    });


    //须知与描述数据加载
    function load_json(json, type) {
        var add_t = type == 'd' ? $('.j_addGoods') : $('.j_addGoods_know');
        for (t_k in json) {
            if (t_k > 0) {
                add_t.click();
            }
            var add_d = type == 'd' ? $('.add_desc') : $('.add_know_span');
            for (d_k in json[t_k].details) {
                if (d_k > 0) {
                    add_d.eq(t_k).click();
                }
                var ipt_d = type == 'd' ? $('.div_descriptions').find('.goods_desc').eq(t_k).find('input[name="descriptions_detail"]') : $('.the_know').find('.goods_desc').eq(t_k).find('input[name="buyer_notes_detail"]');

                ipt_d.eq(d_k).val(json[t_k].details[d_k]);
            }
            var ipt_t = type == 'd' ? $('.div_descriptions').find('input[name="descriptions_title"]') : $('.the_know').find('input[name="buyer_notes_title"]');
            ipt_t.eq(t_k).val(json[t_k].title);
        }
    }

    function attr_json(json, type) {
        var add_t = type == 'd' ? $('.j_addAttrs') : $('.j_addGoods_know');
        for (t_k in json) {
            if (t_k > 0) {
                add_t.click();
            }
            var add_d = type == 'd' ? $('.add_attr') : $('.add_know_span');
            for (d_k in json[t_k].details) {
                if (d_k > 0) {
                    add_d.eq(t_k).click();
                }
                var ipt_d = type == 'd' ? $('.div_attribute').find('.goods_attr').eq(t_k).find('input[name="attribute_class"]') : $('.the_know').find('.goods_desc').eq(t_k).find('input[name="buyer_notes_detail"]');

                ipt_d.eq(d_k).val(json[t_k].details[d_k]);
            }
            var ipt_t = type == 'd' ? $('.div_attribute').find('input[name="attribute_name"]') : $('.the_know').find('input[name="buyer_notes_title"]');
            ipt_t.eq(t_k).val(json[t_k].title);
        }
    }
    </script>
    <!-- 启 -->


<script>
    var isOpenOrderNotice= ; //是否开启订单提醒

    var isFirstLogin='';

    var is_domain_tip=;//域名注册引导弹窗

    $(function(){


        if($(".content-left dl").length<1){
            $(".btn-leftMenuFold").click();
        }

        $(".btn-notice").click(function(){
            // $.post('/System/readAllNotice',{},function(){
            //     window.location.reload();
            // })
            $.ajax({
                url: '/System/readAllNotice',
                type: 'POST',
                success:function(data){
                    if(data.status == 1){
                        window.location.reload();
                    }else{
                        HYD.hint("danger",data.msg);
                    }

                }
            })
        });

        ;(function(){
            // 首页竖线到底
            var height1=$(".content-right").height();
            var height2=$(".content-left").height();
            if(parseInt(height1) < parseInt(height2)){
                $(".content-right").css({'min-height': height2});
            };

        })();
    });

    $(".full_info_overply").click(function () {
        $(this).parent(".full_info").fadeOut(200,function () {
            $(".full_info").remove();
        })
    })


</script>
<!-- end session hint -->
<script>
    $(function () {
        setTimeout(gggoup,5000);
        $('#gonggao .gound_close').click(function(){
            $('#gonggao').animate({bottom:"-270px"},1000);
        });
    });
    function gggoup(){
        $('#gonggao').animate({bottom:"3px"},1000);
    };

    //提示弹框
    ;(function(){
        $('#tip_box .gound_close').click(function(){
            $('#tip_box').animate({bottom:"-186px"},1000);
        });

        function tipgoup(){
            $('#tip_box').animate({bottom:"3px"},1000);
        };

        setTimeout(function(){
            tipgoup();
            setInterval(tipgoup,108000);
        }, 0);

    })();

    ;(function(){

        // 所有表单ajax提交
        $(document).on("submit", "form.ajax-from", function () {
            var _self = $(this);
            var params = _self.serialize();
            var action = _self.attr("action");
            action = action ? action : window.location.href;
            $.jBox.showloading();
            $.post(action, params, function(data) {
                $.jBox.hideloading();
                if (data.status == 1) {
                    HYD.hint("success", data.msg);
                    if (data.url) {
                        setTimeout(function() {
                            window.location.href = data.url;
                        }, 1000);
                    }
                } else {
                    HYD.hint("danger", data.msg);
                }
                $.jBox.hideloading();

            });
            return false;
        });

        // 删除
        $(document).on("click", "a.del", function () {
            var href = $(this).attr("href"),
            msg = $(this).data('msg') ? $(this).data('msg') : "是否真的删除?";
            $.jBox.show({
                title : "提示",
                content : msg,
                btnOK : {
                    onBtnClick:function(){
                        $.jBox.showloading();
                        $.post(href, { }, function(data){
                            if(data.status){
                                var data_msg = data.msg ? data.msg : '删除成功';
                                HYD.hint("success", data_msg);
                                window.location.href="";
                            }
                        }, "json");
                    }
                }
            });

            return false;
        });

        $(function(){

        })


    })();
</script>

</body>
</html>
<!-- 20160630 -->
